<template>
  <div>
    <ZgEdit
      ref="dialog"
      :columns="columns"
      :formulas="formulas"
      :inputClick="inputClick"
      validUrl=""
      saveUrl=""
      :view="view"
      @ok="$emit('ok')">
    </ZgEdit>
  </div>
</template>
<script>
export default {
  data () {
    return {
      view: {
        width: '40%',
        top: '3%',
        title: '配置'
      },
      columns: [
        { name: '授信', code: 'swich1', compType: '开关', isNeed: false, offset: 0, span: 24, defaultVal: false },
        { name: '融资', code: 'swich2', compType: '开关', isNeed: false, offset: 0, span: 24, defaultVal: false },
        { name: '画像更新', code: 'swich3', compType: '开关', isNeed: false, offset: 0, span: 24, defaultVal: false },
        { name: '评级更新', code: 'swich4', compType: '开关', isNeed: false, offset: 0, span: 24, defaultVal: false }
      ],
      formulas: []
    }
  },
  methods: {
    open () {
      this.$refs.dialog.open()
    },
    inputClick (t) {
      alert(JSON.stringify(t))
    }
  }
}
</script>

<style lang="scss" scoped>
</style>
